package com.bao.work;

import java.math.BigDecimal;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Scanner;

/**
 * @author baoye
 * @date 2024-07-25/16:50
 */
public class OftenClass02 {
    public static void main(String[] args) throws ParseException {
        Scanner input = new Scanner(System.in);
        System.out.println("please input age");
        String age = input.next();
        System.out.println("please input score");
        String score = input.next();
        System.out.println("please input goSchoolTime(yyyy-MM-dd)");
        String time = input.next();
        System.out.println("age = " + Integer.valueOf(age));
        System.out.println("score = " + Double.valueOf(score));
        DateFormat dateFormat=new SimpleDateFormat("yyyy-MM-dd");
        System.out.println("time = " +dateFormat.parse(time) );
    }
}
